import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:hook_up_rent/routes.dart';
import 'package:hook_up_rent/scoped_model/room_filter.dart';
import 'package:scoped_model/scoped_model.dart';

class Application extends StatelessWidget {
  Application({Key? key}) : super(key: key);
  final ThemeData theme = ThemeData();
  @override
  Widget build(BuildContext context) {
    FluroRouter router = FluroRouter();
    Routes.configureRoutes(router);
    return ScopedModel<FilterBarModel>(
        model: FilterBarModel(),
        child: MaterialApp(
          theme: theme.copyWith(
              colorScheme: theme.colorScheme.copyWith(
            primary: Colors.green,
          )),
          onGenerateRoute: router.generator,
        ));
  }
}
